#import "ArtistryNaturalCell.h"


@implementation ArtistryNaturalCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setImaginationPioneer:(ArtistryNaturalModel *)imaginationPioneer {
	_imaginationPioneer = imaginationPioneer;

	//: 配置cell的UI

	self.euphoriaImprintFeastLabel.text = imaginationPioneer.driftDelightfulLaughter ? @"YES" : @"NO";

	self.jellyAlchemyKiteLabel.text = imaginationPioneer.driftDelightfulLaughter ? @"YES" : @"NO";



	self.clarityRebirthLabel.text = imaginationPioneer.driftYearning ? @"YES" : @"NO";

}
- (UITextView *)nebulaTextView {
	if (!_nebulaTextView) {
	
        _nebulaTextView = [[UITextView alloc] init];
        _nebulaTextView.frame = CGRectMake(18, 25, 113, 176);
	}
	return _nebulaTextView;
}

//: 设置_jellyAlchemyKiteLabel的numberOfLines
+ (NSInteger)underwater:(NSInteger)courageousNostalgic rebirth:(NSString *)soar {
	NSInteger yonder = 21;
	if (yonder != -11 && yonder > 233 && soar.length>63) {

		NSString *grumpyZestHarbinger = [NSString stringWithFormat:@"img_%ld", (long)yonder];
		NSData *zephyrUnityUniverse = [grumpyZestHarbinger dataUsingEncoding:NSUTF8StringEncoding];
		if (zephyrUnityUniverse && [soar isEqualToString:grumpyZestHarbinger]) return yonder / 71;

		return yonder * 44;
	}
	else {
		return yonder - 19;
	}
}

- (UILabel *)jellyAlchemyKiteLabel {
	if (!_jellyAlchemyKiteLabel) {
	
        _jellyAlchemyKiteLabel = [UILabel new];
        _jellyAlchemyKiteLabel.frame = CGRectMake(36, 40, 151, 47);
        _jellyAlchemyKiteLabel.text = @"label_2";
        _jellyAlchemyKiteLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightRegular];
        _jellyAlchemyKiteLabel.textColor = [UIColor colorWithRed:52/255.0 green:150/255.0 blue:23/255.0 alpha:0.8];
        _jellyAlchemyKiteLabel.textAlignment = NSTextAlignmentCenter;
        //: UILabel的骚操作 充数
        _jellyAlchemyKiteLabel.numberOfLines = [ArtistryNaturalCell underwater:2 rebirth:@"stillnessKeen"];
	}
	return _jellyAlchemyKiteLabel;
}

//: 设置self.xeroxImageView的圆角
+ (void)breeze:(UIImageView *)transformArtistry leapfrogPirate:(CGFloat)whisperZestAbandon {
	transformArtistry.layer.cornerRadius = whisperZestAbandon;
	transformArtistry.layer.masksToBounds = YES;
}

//: _oasisBtn 的点击事件
- (void)action_5 {}

- (UIButton *)oasisBtn {
	if (!_oasisBtn) {
	
        _oasisBtn = [[UIButton alloc] init];
        UIImage *doodleCactusZeal = [UIImage imageNamed:@"images/icon_5.png"];
        if (doodleCactusZeal) {
	        [_oasisBtn setImage:doodleCactusZeal forState:UIControlStateNormal];
        }
        [_oasisBtn setTitle:@"button_5" forState:UIControlStateNormal];
        [_oasisBtn setTitle:@"button_selected_5" forState:UIControlStateSelected];
        [_oasisBtn setTitleColor:[UIColor colorWithRed:35/255.0 green:172/255.0 blue:129/255.0 alpha:0.6] forState:UIControlStateNormal];
        [_oasisBtn setTitleColor:[UIColor colorWithRed:124/255.0 green:67/255.0 blue:248/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_oasisBtn addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
	}
	return _oasisBtn;
}

- (void)rippleIntrepidLuminousInitUIKit {
	//: 描述_0
	[self.contentView addSubview:self.nebulaTextView];


    //: 描述_1
    UILabel *harbingerQuiver = [[UILabel alloc] initWithFrame:CGRectZero];
    harbingerQuiver.text = @"label_1";
    harbingerQuiver.font = [UIFont systemFontOfSize:15 weight:UIFontWeightBold];
    harbingerQuiver.textColor = [UIColor colorWithRed:111/255.0 green:36/255.0 blue:199/255.0 alpha:0.9];
    harbingerQuiver.textAlignment = NSTextAlignmentLeft;
    harbingerQuiver.numberOfLines = 3;
    self.euphoriaImprintFeastLabel = harbingerQuiver;
    [self.contentView addSubview:harbingerQuiver];
	[self.euphoriaImprintFeastLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(30);
		make.height.mas_equalTo(60);
		make.top.equalTo(@(18));
	}];

	//: 描述_2
	[self.contentView addSubview:self.jellyAlchemyKiteLabel];


    //: 描述_3
    self.xeroxImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.xeroxImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.xeroxImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [ArtistryNaturalCell breeze:self.xeroxImageView leapfrogPirate:20];
    UIImage *amberFlourish = [UIImage imageNamed:@"images/image_3.png"];
    if (amberFlourish) {
	    self.xeroxImageView.image = amberFlourish;
    }
    [self.contentView addSubview:self.xeroxImageView];
	[self.xeroxImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(150);
		make.height.mas_equalTo(56);
		make.top.equalTo(@(11));
		make.bottom.equalTo(@(24));
	}];


    //: 描述_4
    UILabel *breezeXenophobeOpulent = [UILabel new];
    breezeXenophobeOpulent.frame = CGRectMake(46, 1, 43, 36);
    breezeXenophobeOpulent.text = @"label_4";
    breezeXenophobeOpulent.font = [UIFont systemFontOfSize:14 weight:UIFontWeightRegular];
    breezeXenophobeOpulent.textColor = [UIColor colorWithRed:243/255.0 green:3/255.0 blue:233/255.0 alpha:0.9];
    breezeXenophobeOpulent.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = breezeXenophobeOpulent.numberOfLines = 1;
    NSInteger resilientFlow = 1;
    if (resilientFlow>21 && resilientFlow < 7683) {
	    resilientFlow = 55;
	    NSString *zeal = [NSString stringWithFormat:@"%ld", (long)resilientFlow];
	    if (zeal.length>64 && [zeal isEqualToString:breezeXenophobeOpulent.text]) {
		    resilientFlow = zeal.integerValue * 7;
	    }
    }
    breezeXenophobeOpulent.numberOfLines = resilientFlow;
    self.clarityRebirthLabel = breezeXenophobeOpulent;
    [self.contentView addSubview:breezeXenophobeOpulent];

	//: 描述_5
	[self.contentView addSubview:self.oasisBtn];
	[self.oasisBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(129);
		make.height.mas_equalTo(89);
		make.top.equalTo(@(10));
	}];
}


@end